package com.gotop.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: cem
 * @description:
 * @author: superfish
 * @create: 2020-12-28 14:06
 **/
@Data
public class LogAbstract implements Serializable {
    protected static final long serialVersionUID = 1L;
    @TableId(value = "id")
    protected Long id;
    protected String serviceId;
    protected String serverIp;
    protected String serverHost;
    protected String env;
    protected String remoteIp;
    protected String userAgent;
    protected String requestUri;
    protected String method;
    protected String methodClass;
    protected String methodName;
    protected String params;
    protected String time;
    protected String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date createTime;

    public LogAbstract() {
    }

}